﻿using ProtoBuf;


namespace Hotfix
{
    /// <summary>
    /// 一个外部消息
    /// </summary>
    public abstract partial class AMessage { }

    /// <summary>
    /// 一个请求消息
    /// </summary>
    [ProtoContract]
    public abstract partial class AMRequest : AMessage
    {
        [ProtoMember(1000)]
        public int Rpcid;
    }

    /// <summary>
    /// 一个响应消息
    /// </summary>
    [ProtoContract]
    public abstract partial class AMResponse : AMessage
    {
        [ProtoMember(1000)]
        public int Rpcid;
        [ProtoMember(1001)]
        public int Error;
        [ProtoMember(1002)]
        public string Message = "";
    }

}
